 $(function() {
    var galleries = $('.ad-gallery').adGallery();
	galleries[0].settings.description_wrapper = $('#descriptions');
	galleries[0].settings.effect = "fade";
    
    $('#toggle-slideshow').click(
      function() {
        galleries[0].slideshow.toggle();
        return false;
      }
    );
  });